@extends('admin/layout')
@section('title','会员管理')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    <a href="{{asset('admin/manage')}}">管理列表</a>
    <small>这是管理员详情页面</small>
  </h1>
  <ol class="breadcrumb">
  	<li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 管理首页</a></li>
    <li><i class="fa fa-users"></i> 会员管理</li>
    <li><a href="{{asset('admin/manage')}}"><i class="fa fa-user"></i> 管理列表</a></li>
    <li class="active"> 管理员详情</li>
</section>

<!-- Main content -->
<section class="content">
  <div class="row">
    <div class="col-md-12">
      <!-- box start -->
      <div class="box box-info">
		  <div class="box-header with-border">
		    <h3 class="box-title"><i class="fa fa-info-circle"> 管理员详情</i></h3>
		  </div>
		  <form action="{{asset('/admin/member')}} method="get">
			  <div class="box-body  box-profile">
			      <img class="profile-user-img img-responsive img-circle" src="{{$data -> pic}}" alt="图片加载失败">
			      <h3 class="">&nbsp;</h3>	
			      <ul class="list-group list-group-unbordered col-md-8 col-md-offset-2">
			      	<li class="list-group-item text-center">
			          <b class="col-md-4">会员名称</b>
			          <a class="col-md-4">{{$data -> name}}</a>
			          <i class="fa fa-user"></i>
			        </li>
			        <li class="list-group-item text-center">
			          <b class="col-md-4">会员昵称</b>
			          <a class="col-md-4">{{$data -> nickname}}</a>
			          <i class="fa fa-github-alt"></i>
			        </li>
			        <li class="list-group-item text-center">
			          <b class="col-md-4">性别</b>
			          <a class="col-md-4">
			          @if($data -> sex == 1) 
					    男
					  @elseif($data -> sex == 2) 
					    女 
					  @else 
					    保密 
					  @endif 
			          </a>
			          <i class="fa fa-mars text-aqua"></i>
			        </li>
			        <li class="list-group-item text-center">
			          <b class="col-md-4">手机号码</b>
			          <a class="col-md-4">{{$data -> phone}}</a>
			          @if(!empty($data -> phone))

			          <i class="fa fa-check text-green">已验证</i>
			          @else
			          <i class="fa fa-times text-red">未验证</i>
			          @endif
			        </li>
			        <li class="list-group-item text-center">
			          <b class="col-md-4">电子邮箱</b>
			          <a class="col-md-4">{{$data -> email}}</a>
			          @if(!empty($data -> email))
			          <i class="fa fa-check text-green">已验证</i>
			          @else
			          <i class="fa fa-times text-red">未验证</i>
			          @endif
			        </li>
			        <li class="list-group-item text-center">
			          <b class="col-md-4">注册时间</b>
			          <a class="col-md-4">{{date("Y-m-d H:i:s",$data -> rtime)}}</a>
			          <i class="text-yellow">NEW</i>
			        </li>
			        <li class="list-group-item text-center">
			          <b class="col-md-4">上次登录时间</b>
			          <a class="col-md-4">{{date("Y-m-d H:i:s",$data -> ltime)}}</a>
			          <i class="">&nbsp;</i>
			        </li>
			        <li class="list-group-item text-center">
			          <b class="col-md-4">登录状态</b>
			          <a class="col-md-4">
			          @if($data -> logged == 2) 
			              在线
			          @else 
			              离线
			          @endif
			          </a>
			          @if($data -> logged == 2) 
			              <i class="fa fa-circle text-green"></i>
			          @else 
			              <i class="fa fa-circle text-red"></i>
			          @endif
			          
			        </li>
			        <li class="list-group-item text-center">
			          <b class="col-md-4">禁用状态</b>
			          <a class="col-md-4">
			          @if($data -> disabled == 1)
				        可用
				      @else
				        禁用
				      @endif
			          </a>
			          @if($data -> disabled == 1)
				        <i class="fa fa-square text-green"></i>
				      @else
				        <i class="fa fa-square text-red"></i>
				      @endif
			        </li>
			        <li class="list-group-item text-center">
			          <a href="/admin/manage/{{$data -> member_id}}/edit">
			            <button type="button" class="btn-bg btn-warning">更改</button>
			          </a>
			          &nbsp;
			          <a href="#">
			            <button type="button" class="btn-bg btn-info">消息</button>
			          </a>
			          &nbsp;
			          <a href="#">
			          	<button type="button" class="btn-bg bg-maroon">订单</button>
			          </a>
			          &nbsp;
			          <a href="#">
			          <button type="button" class="btn-bg bg-purple">评价</button>
			          </a>
			        </li>	        
			      </ul>
			  </div>
			  <div class="box-footer"> 	
			  </div>
		  </form>
	  <!-- /.box -->        
      </div>
    </div>
  </div>
</section>
<!-- /.content -->
@stop